package com.glodon.paas.document.service.util;

import com.glodon.paas.consts.CommonsConfig;

public class DocumentConfig extends CommonsConfig {

    public static String DOCUMENT_SERVER_URL;

    public static String DATABAG_SERVER_URL;

    public static String ACTIVITY_SERVER_URL;

    public static String API_INTERNAL_ACCOUNT_URL;

    public static String API_INTERNAL_DOCUMENT_URL;

    public static String API_INTERNAL_DATABAG_URL;

    public static String API_INTERNAL_SEARCH_URL;

    public static String CREATE_DATABAG_FILE_TYPE = "";

    public static String OPENID_DISCOVERY_URL;

    public static String OPENID_CALLBACK_URL;

    public static String OAUTH_REQUEST_URL;

    public static String OAUTH_ASSCESS_URL;

    public static String OAUTH_AUTHORIZE_URL;

    public static String OAUTH_VALIDATION_URL;

    public static String OAUTH_CONSUMER_KEY;

    public static String OAUTH_CONSUMER_SECRET;

    // default user space is 2g
    public static long   DEFAULT_USE_SPACE        = 1024 * 1024 * 1024 * 2L;

    public static void setAPI_INTERNAL_DOCUMENT_URL(String aPI_INTERNAL_DOCUMENT_URL) {
        API_INTERNAL_DOCUMENT_URL = aPI_INTERNAL_DOCUMENT_URL != null ? aPI_INTERNAL_DOCUMENT_URL.trim() : aPI_INTERNAL_DOCUMENT_URL;
    }

    public static void setAPI_INTERNAL_ACCOUNT_URL(String aPI_INTERNAL_ACCOUNT_URL) {
        API_INTERNAL_ACCOUNT_URL = aPI_INTERNAL_ACCOUNT_URL != null ? aPI_INTERNAL_ACCOUNT_URL.trim() : aPI_INTERNAL_ACCOUNT_URL;
    }

    public static void setAPI_INTERNAL_SEARCH_URL(String aAPI_INTERNAL_SEARCH_URL) {
        API_INTERNAL_SEARCH_URL = aAPI_INTERNAL_SEARCH_URL;
    }

    public static void setCREATE_DATABAG_FILE_TYPE(String cREATE_DATABAG_FILE_TYPE) {
        CREATE_DATABAG_FILE_TYPE = cREATE_DATABAG_FILE_TYPE != null ? cREATE_DATABAG_FILE_TYPE.trim() : cREATE_DATABAG_FILE_TYPE;
    }

    public static void setAPI_INTERNAL_DATABAG_URL(String aPI_INTERNAL_DATABAG_URL) {
        API_INTERNAL_DATABAG_URL = aPI_INTERNAL_DATABAG_URL != null ? aPI_INTERNAL_DATABAG_URL.trim() : aPI_INTERNAL_DATABAG_URL;
    }

    public static String getOPENID_CALLBACK_URL() {
        return OPENID_CALLBACK_URL;
    }

    public static void setOPENID_CALLBACK_URL(String oPENID_CALLBACK_URL) {
        OPENID_CALLBACK_URL = oPENID_CALLBACK_URL;
    }

    public static void setOPENID_DISCOVERY_URL(String oPENID_DISCOVERY_URL) {
        OPENID_DISCOVERY_URL = oPENID_DISCOVERY_URL;
    }

    public static void setOAUTH_REQUEST_URL(String oAUTH_REQUEST_URL) {
        OAUTH_REQUEST_URL = oAUTH_REQUEST_URL;
    }

    public static void setOAUTH_ASSCESS_URL(String oAUTH_ASSCESS_URL) {
        OAUTH_ASSCESS_URL = oAUTH_ASSCESS_URL;
    }

    public static void setOAUTH_AUTHORIZE_URL(String oAUTH_AUTHORIZE_URL) {
        OAUTH_AUTHORIZE_URL = oAUTH_AUTHORIZE_URL;
    }

    public static void setOAUTH_CONSUMER_KEY(String oAUTH_CONSUMER_KEY) {
        OAUTH_CONSUMER_KEY = oAUTH_CONSUMER_KEY;
    }

    public static void setOAUTH_CONSUMER_SECRET(String oAUTH_CONSUMER_SECRET) {
        OAUTH_CONSUMER_SECRET = oAUTH_CONSUMER_SECRET;
    }

    public static void setOAUTH_VALIDATION_URL(String oAUTH_VALIDATION_URL) {
        OAUTH_VALIDATION_URL = oAUTH_VALIDATION_URL;
    }

    public static void setDOCUMENT_SERVER_URL(String dOCUMENT_SERVER_URL) {
        DOCUMENT_SERVER_URL = dOCUMENT_SERVER_URL;
    }

    public static void setDATABAG_SERVER_URL(String dATABAG_SERVER_URL) {
        DATABAG_SERVER_URL = dATABAG_SERVER_URL;
    }

    public static void setACTIVITY_SERVER_URL(String aCTIVITY_SERVER_URL) {
        ACTIVITY_SERVER_URL = aCTIVITY_SERVER_URL;
    }

    public static void setDEFAULT_USE_SPACE(long dEFAULT_USE_SPACE) {
        DEFAULT_USE_SPACE = dEFAULT_USE_SPACE;
    }
}
